package com.tebiecloud.base.client.model;

import com.google.common.collect.Lists;
import com.tebiecloud.base.client.model.entity.BaseAccount;
import com.tebiecloud.common.security.SecurityAuthority;
import lombok.Data;

import java.io.Serializable;
import java.util.Collection;
import java.util.Map;

/**
 * 用户登录账号信息
 * @Author: tebie
 * @Date: 2019-08-10 10:28
 */
@Data
public class UserAccount extends BaseAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    private Collection<Map> roles = Lists.newArrayList();

    /**
     * 用户权限
     */
    private Collection<SecurityAuthority> authorities = Lists.newArrayList();

    /**
     * 第三方账号
     */
    private String thirdParty;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 头像
     */
    private String avatar;

}
